<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>com.sekati.time.FPS - SASAPI</title><script src="../../../quicknav.js" type="text/javascript"></script><script><!--
document.quicknavBasePath="../../../index-files";
//--></script><link href="../../../style.css" title="JavaDoc" rel="stylesheet" type="text/css"/><link href="../../../unnatural.css" title="Unnatural" rel="alternate stylesheet" type="text/css"/><link href="../../../overview-summary.html" title="Overview" rel="top"/><link href="package-summary.html" title="Package com.sekati.time" rel="up"/><link href="../../../com/sekati/time/StopWatch.html" title="Class com.sekati.time.StopWatch" rel="prev"/><link href="../../../com/sekati/services/Urchin.html" title="Class com.sekati.services.Urchin" rel="next"/><meta name="generator" content="http://www.badgers-in-foil.co.uk/projects/as2api/"/></head><body><h1>Class com.sekati.time.FPS</h1><div class="type_hierachy"><ul><li><a href="../../../com/sekati/core/CoreObject.html" class="class_name" title="Class com.sekati.core.CoreObject">com.sekati.core.CoreObject</a><ul><li><strong>com.sekati.time.FPS</strong></li></ul></li></ul></div><div class="type_description"><h2>Description</h2><p>
 Monitor the current applications framerate (fps).
 <pre> Usage:
 	<span class="key">var</span> f:FPS = <span class="key">new</span> FPS(Delegate.create(<span class="key">this</span>,fpsUpdate), <span class="num_const">1</span>);
 	<span class="key">function</span> fpsUpdate(current:Number, average:Number, currentTrend:String, averageTrend:String):Void {
 		tf.text = <span class="str_const">"current fps: "</span>+currentTrend+current+<span class="str_const">" average fps: "</span>+averageTrend+average;
 	}
 </pre>
 </p></div><div class="type_indexes"><div class="method_index"><h2>Method Index</h2><div><code>new <a href="#FPS" title="public function FPS(cb:Function, updateEachFrame:Number)">FPS()</a></code></div><a href="#destroy" title="public function destroy():Void">destroy()</a><h4>Inherited from <a href="../../../com/sekati/core/CoreObject.html" class="class_name" title="Class com.sekati.core.CoreObject">CoreObject</a></h4><div class="extra_info"><a href="../../../com/sekati/core/CoreObject.html#toString" title="public function toString():String">toString()</a></div></div></div><div class="type_details"><div class="constructor_detail_list"><h2>Constructor Detail</h2><div class="method_details"><a name="FPS"></a><h3>FPS</h3><code class="method_synopsis">public function <strong class="method_name">FPS</strong>(cb:<span class="unresolved_type_name">Function</span>, updateEachFrame:<span class="unresolved_type_name">Number</span>)</code><div class="method_info"><p>
 FPS Constructor
 </p><h4>Parameters</h4><table class="arguments extra_info" summary=""><tr><td><code>cb</code></td><td>(Function) callback to pass (currentFps:Number, averageFps:Number, currentTrend:String, averageTrend:String)
 </td></tr><tr><td><code>updateEachFrame</code></td><td>(Number) frame ticks between cb updates
	 </td></tr></table></div></div></div><div class="method_detail_list"><h2>Method Detail</h2><div class="method_details alt_row"><a name="destroy"></a><h3>destroy</h3><code class="method_synopsis">public function <strong class="method_name">destroy</strong>():<span class="void_name">Void</span></code><div class="method_info"><p>
 Destroy the FPS Singleton instance.
 </p><h4>Return</h4><p class="extra_info"> Void
	 </p><h4>Specified By</h4><p class="extra_info"><a href="../../../com/sekati/core/CoreInterface.html#destroy" title="function destroy():Void">destroy()</a> in <a href="../../../com/sekati/core/CoreInterface.html" class="interface_name" title="Interface com.sekati.core.CoreInterface">com.sekati.core.CoreInterface</a></p><h4>Overrides</h4><p class="extra_info"><a href="../../../com/sekati/core/CoreObject.html#destroy" title="public function destroy():Void">destroy()</a> in <a href="../../../com/sekati/core/CoreObject.html" class="class_name" title="Class com.sekati.core.CoreObject">com.sekati.core.CoreObject</a></p></div></div></div></div><ul class="main_nav" id="main_nav"><li><a href="../../../overview-summary.html" title="Overview of SASAPI" class="button">Overview</a></li><li><a href="package-summary.html" title="Overview of package com.sekati.time" class="button">Package</a></li><li><span class="button nav_current">Class</span></li><li><a href="FPS.as.html" title="Source code of com.sekati.time.FPS" class="button">Source</a></li><li><a href="../../../index-files/index.html" title="Alpabetical index of types and members" class="button">Index</a></li></ul><div class="footer"><a href="http://www.badgers-in-foil.co.uk/projects/as2api/" title="ActionScript 2 API Documentation Generator">as2api</a></div></body></html>